﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ClassLibrary.DAO;

public partial class Admin_ucControl_ucListSanPham : System.Web.UI.UserControl
{
    TblItemDAO itemDAO = new TblItemDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadItem();
        }
    }

    private void LoadItem()
    {
        grdItems.DataSource = itemDAO.GetItem(0);
        grdItems.DataBind();
    }
    protected void grdItems_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {

    }
    protected void grdItems_RowDataBound(object sender, GridViewRowEventArgs e)
    {

    }
    protected void btnDel_Click(object sender, EventArgs e)
    {

    }
}
